<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of isint</title>
  <meta name="keywords" content="isint">
  <meta name="description" content="">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- ../menu.html trunk --><!-- menu.html utils -->
<h1>isint
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong></strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="box"><strong>function [ Y ] = isint( X ) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre class="comment">
 ISINT     True for integer numbers

    Y = ISINT(X) returns true (1) is X is an integer, false (0) otherwise.
 Created by Frederico D'Almeida: http://www.mathworks.com/matlabcentral/fileexchange/1309-general-extra-toolbox/content/isint.m</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function [ Y ] = isint( X )</a>
0002 <span class="comment">%</span>
0003 <span class="comment">% ISINT     True for integer numbers</span>
0004 <span class="comment">%</span>
0005 <span class="comment">%    Y = ISINT(X) returns true (1) is X is an integer, false (0) otherwise.</span>
0006 <span class="comment">% Created by Frederico D'Almeida: http://www.mathworks.com/matlabcentral/fileexchange/1309-general-extra-toolbox/content/isint.m</span>
0007 
0008 <span class="keyword">if</span> isa(X,<span class="string">'uint8'</span>)
0009    Y = ones(size(X));
0010 <span class="keyword">else</span>
0011    Y = logical(X==round(X));
0012 <span class="keyword">end</span>
0013 <span class="keyword">end</span>
0014</pre></div>
<hr><address>Generated on Tue 30-Apr-2013 10:18:12 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>